﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ProTrack.Entity
{
    public class WhPoInboundItem
    {
        /// <summary>
        /// ID 主键，自增长
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 采购入库ID
        /// </summary>
        public long WhPoInboundId { get; set; }

        /// <summary>
        /// 商品编号，不允许为空
        /// </summary>
        public long ItemId { get; set; }

        /// <summary>
        /// 数量，不允许为空
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 商品单价，采购价，不允许为空
        /// </summary>
        public float Price { get; set; }

        /// <summary>
        /// 金额，不允许为空
        /// </summary>
        public float Amount { get; set; }

        /// <summary>
        /// 入库数量
        /// </summary>
        public float? Quantity { get; set; }

        /// <summary>
        /// 备注，最大长度255
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建者，最大长度255
        /// </summary>
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间，默认为当前时间
        /// </summary>
        public DateTime ? CreateTime { get;  set; }

        /// <summary>
        /// 修改者，最大长度255
        /// </summary>
        public string Updater { get; set; }

        /// <summary>
        /// 修改时间，默认为当前时间
        /// </summary>
        public DateTime ? UpdateTime { get; private set; }

        /// <summary>
        /// 是否删除，默认为false
        /// </summary>
        public bool Deleted { get; set; } = false;
    }
}
